/**
 * Created with Intellij IDEA.
 * Description:
 * User:Lenovo
 * Date:2024-12-06
 * Time:21:48
 */
public class Text {
    public static void main(String[] args) {
        int[] arr = null;
        try {
            System.out.println("before");
            System.out.println(arr[100]);
            System.out.println("after");
        }catch(ArrayIndexOutOfBoundsException e) {
            System.out.println("这是个数字下标越界异常");
        }catch(NullPointerException e){
            System.out.println("这是个空指针异常");
        }finally{
            System.out.println("必执行的代码");
        }
        System.out.println("after try catch");
    }
}
